﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Wijmo.Master" AutoEventWireup="true" CodeBehind="Import.aspx.cs" Inherits="ControlExplorer.C1EventsCalendar.Import1" %>

<%@ Register Assembly="C1.Web.Wijmo.Controls.3" Namespace="C1.Web.Wijmo.Controls.C1EventsCalendar"
	TagPrefix="wijmo" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
		<wijmo:C1EventsCalendar runat="server" ID="C1EventsCalendar1" 
			ViewType="Month" SelectedDate="2011-03-01"
			Width="100%"  Height="475px"></wijmo:C1EventsCalendar>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ControlOptions" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="Description" runat="server">
                <p>
                    此示例展示了如何从iCal版式中导入事件。
                </p>
			<p>在示例中使用行为：</p>
			<ul>
				<li><strong>DataStorage.Import</strong> - 把一个特定格式的文件中的数据导入到事件日历。</li>
				<li><strong>DataStorage.SaveData()</strong> - 通过数据存储设置将事件数据保存到数据源或者XML文档中。</li>
			</ul>
			<p>注意，在导入数据之后，您应该调用SaveData()方法来使数据长久保存。</p>
			<pre class="controldescription-code">
  C1EventsCalendar1.DataStorage.Import(
			Server.MapPath("pens_schedule_1011_full.ics"), 
			FileFormatEnum.iCal);
  C1EventsCalendar1.DataStorage.SaveData();
			</pre>
			<p>
	
			</p>
</asp:Content>
